<template>
  <div class="my-train">
    <div class="top">
      <div class="cons" :style="'width: '+(12.8-1.5)*5+'rem'">
        <div class="item add" @click="is_mask = true">
          <p class="title">添加</p>
          <p class="tip">定制方案</p>
        </div>
        <div class="item active">
          <p class="title">大儿子</p>
          <p class="tip">木火木</p>
        </div>
        <div class="item" @click="router({path: './editAttr'})">
          <p class="title">小女儿的</p>
          <p class="tip none-attr">选择属性</p>
        </div>
        <div class="item">
          <p class="title">小女儿的</p>
          <p class="tip">木火木</p>
        </div>
        <div class="item">
          <p class="title">小女儿的</p>
          <p class="tip">木火木</p>
        </div>
      </div>
    </div>
    <div class="audio"></div>
    <p class="con-title">
      <span>课程方案</span>
      <em>私人定制专属方案</em>
    </p>
    <div class="list">
      <div class="item" @click="router({path: './makeAudioDetails'})">
        <img src="@/assets/fanandingzhi06.png" class="left-img" alt="">
        <div class="cons">
          <p class="cons-title">最强大脑是怎么炼成的</p>
          <p class="time">2018.11.14 09:24</p>
        </div>
        <img src="@/assets/fanandingzhi07.png" class="right-img" alt="">
      </div>
      <div class="item" @click="router({path: './makeVideoDetails'})">
        <img src="@/assets/fanandingzhi06.png" class="left-img" alt="">
        <div class="cons">
          <p class="cons-title">最强大脑是怎么炼成的</p>
          <p class="time">2018.11.14 09:24</p>
        </div>
        <img src="@/assets/fanandingzhi07.png" class="right-img" alt="">
      </div>
      <div class="item">
        <img src="@/assets/fanandingzhi06.png" class="left-img" alt="">
        <div class="cons">
          <p class="cons-title">最强大脑是怎么炼成的</p>
          <p class="time">2018.11.14 09:24</p>
        </div>
        <img src="@/assets/fanandingzhi07.png" class="right-img" alt="">
      </div>
      <div class="item">
        <img src="@/assets/fanandingzhi06.png" class="left-img" alt="">
        <div class="cons">
          <p class="cons-title">最强大脑是怎么炼成的</p>
          <p class="time">2018.11.14 09:24</p>
        </div>
        <img src="@/assets/fanandingzhi07.png" class="right-img" alt="">
      </div>
      <div class="item">
        <img src="@/assets/fanandingzhi06.png" class="left-img" alt="">
        <div class="cons">
          <p class="cons-title">最强大脑是怎么炼成的</p>
          <p class="time">2018.11.14 09:24</p>
        </div>
        <img src="@/assets/fanandingzhi07.png" class="right-img" alt="">
      </div>
    </div>
    <div class="mask-div" v-if="is_mask">
      <div class="mask-bg" @click="is_mask = false"></div>
      <div class="content">
        <img src="@/assets/huanyingzixun.png" alt="">
        <p class="title">我们会全心全意为您提供满意的<br>咨询服务</p>
        <p class="tip">若需要增加方案定制次数，请购买增量密钥</p>
        <a class="btn" href="tel:10086">联系客服</a>
      </div>
    </div>
  </div>
</template>

<script>

  export default {
    components: {
    },
    data () {
      return {
        is_mask: false
      }
    },
    created () {
    },
    methods: {
      router (path) {
        this.$router.push(path)
      },
    }
  }
</script>

<style lang="stylus" scoped>
.my-train
  .top
    width 100%
    overflow auto
    position relative
    height 10.5rem
    margin-bottom 1rem
    .cons
      width 1000px
      position absolute
      height 10.5rem
      padding-left 1.5rem
      .item.add
        background-image url('../../assets/fanandingzhi01.png')
      .item
        background-image url('../../assets/daerzi.png')
        background-size cover
        width 12.8rem
        height 10.5rem
        float left
        margin-left -1.5rem
        .title
          color #000
          font-size 1.8rem
          font-weight 500
          text-align center
          margin-top 2.5rem
        .tip
          font-size 1.2rem
          color #656565
          text-align center
        .tip.none-attr
          color #25428B
      .item.active
        background-image url('../../assets/fanandingzhi02.png')
        p
          color #fff
  .audio
    background-color #f5f6fa
    height 7rem
    width 92%
    margin-left 4%
  .con-title
    margin-top 2rem
    padding-left 1.6rem
    span
      line-height 2.3rem
      height 2.3rem
      font-size 1.8rem
      color #333
      font-weight bold
      display inline-block
      vertical-align middle
    em
      border-radius 1.2rem 1.2rem 1.2rem 0px
      background-color #f5f6fa
      height 2.3rem
      line-height 2.3rem
      color #647DBC
      font-size 1.2rem
      padding 0 .5rem
      display inline-block
      vertical-align middle
      margin-left .8rem
  .list
    padding 0 1.5rem
    .item
      padding 2rem 0
      overflow hidden
      border-bottom 1px solid #e6e6e6
      &:last-child
        border none
      .left-img
        height 5rem
        width auto
        margin-right 1.8rem
        float left
      .right-img
        float right
        width 2.6rem
        margin-top 1.2rem
      .cons
        float left
        width calc(100vw - 14rem)
        margin-top .6rem
        .cons-title
          color #333333
          width 100%
          font-size 1.5rem
          font-weight 500
          white-space nowrap
          text-overflow ellipsis
          overflow hidden
          line-height 1.6rem
          height 1.6rem
          margin-bottom .7rem
        .cons-time
          font-size 1.2rem
          color #999
          height 1.4rem
          line-height 1.4rem
  .content
    background-color #fff
    width 72%
    margin-left 14%
    padding .5rem
    box-sizing border-box
    top 13.3rem
    text-align center
    .title
      font-size 1.5rem
      color #333
      margin-top 1rem
      font-weight bold
    .tip
      font-size 1.1rem
      color #333
      height 1.1rem
      line-height 1.1rem
      margin-top 1.8rem
    .btn
      color #172F6D
      border 1px solid #172F6D
      height 3.6rem
      line-height 3.6rem
      text-align center
      border-radius 100px
      display block
      width 20rem
      margin-top 2.5rem
      margin-bottom 1.6rem
      position relative
      left 50%
      margin-left -10rem
      font-size 1.3rem
</style>
